//
//  WmcMediaTeamInfoModel.swift
//  YPWatermarkCamera
//
//  Created by 周诗松 on 2022/9/15.
//

import Foundation
import YPNetwork

class WmcMediaTeamInfoModel: YPNetworkJsonProtocol {
    
    required init() {
        
    }
    
    /// 成员id
    var teamId: Int?
    
    /// 数量
    var teamName: String?
    
    var memberList: [WmcMediaTeamMemberModel] = []
        
    struct WmcMediaTeamMemberModel: YPNetworkJsonProtocol {
//        /// 成员id
//        var memberId: Int = 0
//
//        /// 成员鱼泡id
//        var uid: Int = 0
//
//        /// 成员水印相机id
//        var tenantId: Int = 0
//
//        /// 成员手机
//        var mobile: String = ""
//
//        /// 成员备注名
//        var remark: String = ""
//
//        /// 是否已注册
//        var registered: Bool = false
//
//        /// 权限
//        var role: Int = 0
//
//        /// 资源类型，0:图片，1:视频
//        var resourceType: String = ""
        
        var avatar: String = ""
        
        var memberId: Int = 0
        
        var mobile: String = ""
        
        var registered: Bool = false
        
        var remark: String = ""
        
        var role: Int = 0
        
        var tenantId: Int = 0
        
        var uid: Int = 0
       
        
    }
    
    /// 为了UI显示 扩展字段，没有啊啊
    var teamOpenId = ""
}


struct WmcMediaTeamDetailModel: YPNetworkJsonProtocol {
    /// 团队id
    var teamId: Int = 0
    
    /// 团队号id
    var teamOpenId: String = ""
    
    /// 团队名称
    var teamName: String = ""
    
    /// 状态：0-禁用，1-启用
    var status: Int = 0
    
    /// 创建人用户id
    var creatorUid: Int = 0
    
    /// 创建人租户id
    var creatorTenantId: Int = 0
}
